package com.lebang.feignconfig;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig implements RequestInterceptor {

    public static String TOKEN_HEADER = "FEIGN-AUTH";

    @Override
    public void apply(RequestTemplate template) {
        template.header(TOKEN_HEADER, "KSHANDLKAHJDEQWPIELNAD");
    }
}